package com.rhythm.commons.validation;

import com.rhythm.commons.validation.InvalidStateException;
import com.rhythm.commons.validation.Validatable;
import com.rhythm.commons.validation.Validator;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Michael J. Lee
 */
public class MockCompany implements Validatable<MockCompany>{

    private final String name;

    public MockCompany(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void checkState(Validator<MockCompany> validator) throws InvalidStateException {


        validator.checkState(this);
    }
}
